package com.yuju.account.dao;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.yuju.model.account.AccountModel;
import com.yuju.account.dao.entity.Account;
import com.yuju.account.model.RoomOrderModel;
import com.yuju.common.PageModel;
import com.yuju.common.core.dao.IBaseDao;

/**
 * 类名：IAccountDao  <br />
 *
 * 功能：
 *
 * @author : jiaokn <br />
 * @Date : 2017年11月27日 上午9:45:59  <br />
 * @version : 1.1 <br />
 */
public interface IAccountDao extends IBaseDao<AccountModel, Account, String> {
	
	BigDecimal getCTMoneySum(AccountModel accountModel);
	
	List<AccountModel> getCTReport(AccountModel accountModel);
	PageModel getCTReportPage(AccountModel accountModel, Integer currentPage, Integer rows);
	int countCT(Map<Object, Object> map);
	
	int getAccountAmountSum(AccountModel accountModel);
	
	List<AccountModel> listOrderAccountNoPage(AccountModel accountModel);
	
	int updateBalanceByOrderId(Map<String,Object> map);
	int updateBalanceByRoomGuestId(Map<String,Object> map);
	
	int updateBalanceByReserveId(Map<String,Object> map);
	
	RoomOrderModel getRoomOrder(String id);
	
	List<AccountModel> listByOrderIds(List<String> list);
	
	PageModel listOrderAccount(AccountModel accountModel, Integer currentPage, Integer rows);
	Integer countByMap(Map<Object, Object> map);
	
}
